﻿/*
 * (c) Stefan Bojarovski 2010
 * */
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ASTBuilder
{
    class BlankNode : NodesCollection, IArithmeticNode
    {
        private LexemeType lexType = LexemeType.BLANK;

        public LexemeType getLexemeType()
        {
            return lexType;
        }
        public void printNode(String parentLevel, StreamWriter someStream)
        {
            someStream.WriteLine(parentLevel + " " + "Blank");
        }
        public void setNegative() { }
        public IArithmeticNode getFirst() { return this; }
        public IArithmeticNode getSecond() { return this; }
        public List<Command> evalNode(ref Direction next, 
                                        ref Dictionary<String, Pair<IdentifierType, object>> Environment)
        {
            List<Command> blank = new List<Command>();
            blank.Add(new Command(CommandType.VOID, null, null));
            return blank;
        }
    }
}
